<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'userUpdate.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
	id:<s:property value="user.id"/><br/>
		<s:form action="user!update.do" >
		id:<s:property value="user.id"/>
			<s:textfield name="user.id" label="id"></s:textfield>
			<s:textfield name="user.age" label="age"></s:textfield>
			<s:radio list='#{"1":"男","0":"女"}' name="user.gender" label="gender"></s:radio>
			<s:textfield name="user.userName" label="userName"></s:textfield>
			<br/>userName:<s:property value="user.userName"/>
			<s:submit value="submit"></s:submit>
		</s:form>
		<hr/>
		<s:form action="user!update.do" theme="simple">
			id:<s:property value="user.id"/><br/>
			age:<s:textfield name="user.age" ></s:textfield><br/>
			gender:<s:radio list='#{"1":"男","0":"女"}' name="user.gender" ></s:radio><br/>
			userName:<s:property value="user.userName"/><br/>
			<s:submit value="submit"></s:submit>
		</s:form>
	</body>
</html>
